Skip to content

feat: add convention and category CRUD operations via MCP and CLI#54

Merged
ikjeong merged 5 commits intomainfrom
feat/convention
Dec 12, 2025
Merged

feat: add convention and category CRUD operations via MCP and CLI#54
ikjeong merged 5 commits intomainfrom
feat/convention

Conversation

@ikjeong
Copy link
Contributor

@ikjeong ikjeong commented Dec 12, 2025

Summary

  • AI 코딩 도구(Cursor, Claude Code 등)가 MCP를 통해 코딩 컨벤션을 직접 관리할 수 있도록 CRUD 도구 추가
  • CLI를 통한 컨벤션/카테고리 관리 명령어 추가
  • user-policy.json을 code-policy.json 및 린터 설정으로 변환하는 MCP convert 도구 추가

Changes

MCP 도구

도구 설명
list_convention 컨벤션 조회 (기존 query_conventions 리네임)
add_convention 컨벤션 추가 (배치 지원)
edit_convention 컨벤션 수정 (ID 변경, 속성 변경 지원)
remove_convention 컨벤션 삭제
list_category 카테고리 조회
add_category 카테고리 추가 (배치 지원)
edit_category 카테고리 수정 (이름 변경 시 규칙 참조 자동 업데이트)
remove_category 카테고리 삭제 (참조 중인 규칙이 있으면 거부)
convert user-policy.json → code-policy.json + 린터 설정 생성
import_convention 외부 문서에서 컨벤션 추출 및 병합
validate_code Git 변경사항 검증

CLI 명령어 추가

# 컨벤션 관리
sym convention list                    # 전체 컨벤션 조회
sym convention add <id> <say> [flags] # 단일 추가
sym convention add -f conventions.json # 배치 추가
sym convention edit <id> [flags]       # 단일 수정
sym convention edit -f edits.json      # 배치 수정
sym convention remove <id> [ids...]    # 삭제

- rename query_conventions to list_convention
- add add_convention, edit_convention, remove_convention MCP tools
- add sym convention list|add|edit|remove CLI commands
- auto-update defaults.languages on convention add/edit
- Add convert tool to generate linter configs from user-policy.json
- Update tool descriptions to indicate convert is needed after rule changes
@ikjeong ikjeong self-assigned this Dec 12, 2025
@ikjeong ikjeong merged commit cee24a0 into main Dec 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant